package com.zcf.pojo;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhouzhuang
 * @since 2018-11-28
 */
public class Product extends Model<Product> {

	private static final long serialVersionUID = 1L;

	@TableId(value = "id")
	private String id;
	/**
	 * 餐厅id
	 */
	private String diningId;
	private String productName;
	private Double price;
	private String classId;
	/**
	 * 商品图片
	 */
	private String image;
	/**
	 * 商品备注
	 */
	private String remark;
	private Integer saleNums;
	/**
	 * 口碑等级
	 */
	private String level;
	/**
	 * 1:上架在售 0：下架
	 */
	private Integer type;
	/**
	 * 1：缺货 2：库存不足 3：库存无限
	 */
	private Integer productNums;
	private String time;
	/**
	 * 备用
	 */
	private String notice;
	private int foodnums;
	@TableField(exist = false)
	private int foodnumzzc = 0;
	private int isroom = 0;

	public String getShowcreate() {
		return showcreate;
	}

	public void setShowcreate(String showcreate) {
		this.showcreate = showcreate;
	}

	public String getShowend() {
		return showend;
	}

	public void setShowend(String showend) {
		this.showend = showend;
	}

	private String showcreate ;
	private String showend ;
	public int getFoodnumzzc() {
		return foodnumzzc;
	}

	public void setFoodnumzzc(int foodnumzzc) {
		this.foodnumzzc = foodnumzzc;
	}

	public int getFoodnums() {
		return foodnums;
	}

	public void setFoodnums(int foodnums) {
		this.foodnums = foodnums;
	}



	public String getClassId() {
		return classId;
	}

	public void setClassId(String classId) {
		this.classId = classId;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getDiningId() {
		return diningId;
	}

	public void setDiningId(String diningId) {
		this.diningId = diningId;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getSaleNums() {
		return saleNums;
	}

	public void setSaleNums(Integer saleNums) {
		this.saleNums = saleNums;
	}

	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getProductNums() {
		return productNums;
	}

	public void setProductNums(Integer productNums) {
		this.productNums = productNums;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public String getNotice() {
		return notice;
	}

	public int getIsroom() {
		return isroom;
	}

	public void setIsroom(int isroom) {
		this.isroom = isroom;
	}

	public void setNotice(String notice) {
		this.notice = notice;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Product{" + "id=" + id + ", diningId=" + diningId + ", productName=" + productName + ", price=" + price
				+ ", image=" + image + ", remark=" + remark + ", saleNums=" + saleNums + ", level=" + level + ", type="
				+ type + ", productNums=" + productNums + ", time=" + time + ", notice=" + notice + "}";
	}
}
